package cn.com.tt.flink.sql.engine.pojo;

import cn.com.tt.flink.sql.engine.pojo.source.JobSource;
import lombok.Data;

import java.util.List;

/**
 * 单例对象
 */

@Data
public class JobConfig {
    private String jobName;
    private List<JobUdf> udfList;
    private List<JobSource> sourceList;
    private JobSql sqlStatement;
    private String scanStartupMode;
    private Long scanStartupTimestampMs;

    private static class SingletonHolder {
        private static JobConfig jobEntity = new JobConfig();
    }

    private JobConfig() {
    }

    public static JobConfig getInstance() {
        return SingletonHolder.jobEntity;
    }
}
